package com.seecen.service.impl;

import com.seecen.dao.BookDao;
import com.seecen.entity.Book;
import com.seecen.service.BookService;
import com.seecen.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author bigpig
* @description 针对表【T_BOOK】的数据库操作Service实现
* @createDate 2024-08-26 10:27:56
*/
@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private BookDao bookDao;

    @Override
    public List<Book> findBookByBookCategoryId(int bookCategoryId) {
        return bookDao.findBookByBookCategoryId(bookCategoryId);
    }

    @Override
    public Result save(Book book) {
        bookDao.save(book);
        return Result.success();
    }
}




